<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <label for="length">请输入生成长度</label>
  <input type="number" name="length" id="lengInput">
  <button onclick="confirmIpt()">生成</button>
  <div>
    密码:
    <span id="showPwd"></span>
  </div>
</body>
</html>
<script src="./demo-password.js"></script>